<ResourceDictionary  
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:System="clr-namespace:System;assembly=mscorlib" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">


    <LinearGradientBrush EndPoint="0,1" x:Key="backBorderBackground" MappingMode="RelativeToBoundingBox" StartPoint="0,0">
        <GradientStop Color="#E6E6E6" Offset="0"/>
        <GradientStop Color="#F5F5F5" Offset="0.5"/>
        <GradientStop Color="#E6E6E6" Offset="0.5"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0.5,1" x:Key="back1BorderBackground"  StartPoint="0.5,0">
        <LinearGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                <RotateTransform CenterY="0.5" CenterX="0.5"/>
                <TranslateTransform/>
            </TransformGroup>
        </LinearGradientBrush.RelativeTransform>
        <GradientStop Offset="0.3" Color="#7FDEDEDE"/>
        <GradientStop Color="Silver" Offset="0.996"/>
        <GradientStop Color="White"/>
        <GradientStop Color="#4CC0C0C0" Offset="0.85"/>
        <GradientStop Color="#00E5E5E5" Offset="0.491"/>
        <GradientStop Color="#E5F1F1F1" Offset="0.1"/>
    </LinearGradientBrush>


    <LinearGradientBrush x:Key="ButtonNormalBackgroundFill" EndPoint="0.5,1" StartPoint="0.5,0">
        <GradientStop Color="#FFFFFFFF" Offset="0"/>
        <GradientStop Color="#00F0F0EA" Offset="1"/>
    </LinearGradientBrush>


    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="EditeMapButtonBorderBackground">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop Color="#FFEDEDED"/>
                <GradientStop Color="White" Offset="1"/>
                <GradientStop Color="#FFACACB8" Offset="0.5"/>
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>


    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="MouseOverEditeMapButtonBorderBackground">
        <GradientStop Color="#FF4B4B4B" Offset="0"/>
        <GradientStop Color="#FFACACB8" Offset="0.98888897895812988"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="EditeMapRadioButtonBorderBackground">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop
													Color="#FF434545"
													Offset="0" />
                <GradientStop
													Color="#FF1e252a"
													Offset="0.9888889789581299" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="MouseOverEditeMapRadioButtonBorderBackground" >
        <GradientStop Color="#FF4B4B4B" Offset="0"/>
        <GradientStop Color="#FF1E252A" Offset="0.98888897895812988"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="MouseOverEditeMapRadioButtonBorderBackground1">
        <GradientStop Color="#FF4B4B4B" Offset="0"/>
        <GradientStop Color="#FF1E252A" Offset="0.98888897895812988"/>
    </LinearGradientBrush>

    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="IsCheckedrEditeMapRadioButtonBorderBackground">
        <GradientStop Color="#FF4B4B4B" Offset="0"/>
        <GradientStop Color="#FF718282" Offset="0.98888897895812988"/>
    </LinearGradientBrush>


    <LinearGradientBrush x:Key="mouseOverBorderLeft"
										StartPoint="11,0"
										EndPoint="11,1.0080003526475694">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop
													Color="#00ffffff"
													Offset="0" />
                <GradientStop
													Color="#FFffffff"
													Offset="0.5" />
                <GradientStop
													Color="#00ffffff"
													Offset="0.9777780175209045" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="mouseOverBorderTop"
										StartPoint="0.9916669429876055,4"
										EndPoint="5.868763301918821e-7,4">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop
													Color="#00ffffff"
													Offset="0" />
                <GradientStop
													Color="#FFffffff"
													Offset="0.49444401264190674" />
                <GradientStop
													Color="#00ffffff"
													Offset="0.9722219705581665" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="mouseOverBorderBack" EndPoint="0.5,1" StartPoint="0.5,0">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop
													Color="#FF616262"
													Offset="0" />
                <GradientStop
													Color="#FF1e252a"
													Offset="0.9888889789581299" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>
    <SolidColorBrush x:Key="mouseOverButtonBorder" Color="#80B8B8B8"/>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="toolButtonBorderBackground">
        <LinearGradientBrush.GradientStops>
            <GradientStopCollection>
                <GradientStop
													Color="Transparent"
													Offset="0" />
                <GradientStop
													Color="Transparent"
													Offset="0.9888889789581299" />
            </GradientStopCollection>
        </LinearGradientBrush.GradientStops>
    </LinearGradientBrush>

    <SolidColorBrush x:Key="ButtonBorder" Color="#FF003C74"/>
    <Style x:Key="oldButtonStyle" TargetType="Button">
        <Setter Property="Foreground" Value="#FF2F2D2D"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <Setter Property="MinHeight" Value="22"/>
        <Setter Property="MinWidth" Value="70"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="back" Background="{StaticResource backBorderBackground}"  BorderBrush="#B3B3B3" BorderThickness="1"  CornerRadius="1"  >
                        <Grid>


                            <!--<Border   ClipToBounds="True" Background="{StaticResource backBorderBackground}" HorizontalAlignment="Stretch"  CornerRadius="3" >
                            </Border>-->

                            <Border  Margin="0,0,0,0" Grid.RowSpan="2" x:Name="fore" BorderThickness="0" CornerRadius="3"  >
                                <ContentPresenter x:Name="content" TextElement.Foreground="Black" HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding  Content}">
                                </ContentPresenter>
                            </Border>
                        </Grid>


                    </Border>

                    <ControlTemplate.Triggers>

                        <Trigger Property="IsPressed" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="1,1,1,1" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>


                        <!--<Trigger  Property="IsMouseOver" Value="True">
                            <Setter Value="White" Property="TextElement.Foreground" TargetName="content"/>
                        </Trigger>-->

                        <!--鼠标悬浮上去颜色的变换-->
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#B8B8B8" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="back" IsAdditive="False"></ColorAnimation>
                                        <!--<ColorAnimation To="#BFBFBF" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>-->
                                        <!--<ColorAnimation To="White" Duration="0:0:0.1" Storyboard.TargetProperty="TextElement.Foreground" Storyboard.TargetName="content" ></ColorAnimation>-->

                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#E6E6E6" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>
                                        <!--<ColorAnimation To="#E6E6E6" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>-->
                                        <!--<ColorAnimation To="Black" Duration="0:0:0.1" Storyboard.TargetProperty="TextElement.Foreground" Storyboard.TargetName="content" ></ColorAnimation>-->
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>


                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="TextElement.Foreground" TargetName="content" Value="#FF5F7B91"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="0,1,0,0" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="EditeMapButton" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="{StaticResource ButtonNormalBackgroundFill}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonBorder}"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Focusable" Value="False"></Setter>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="back" Background="{StaticResource EditeMapButtonBorderBackground}"  CornerRadius="3"  BorderThickness ="1" BorderBrush="#80B8B8B8">
                        <ContentPresenter Margin="0" x:Name="content"  Content="{TemplateBinding  Content}">
                        </ContentPresenter>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF718282" Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Background" Value="{StaticResource MouseOverEditeMapButtonBorderBackground}" TargetName="back">
                            </Setter>

                        </Trigger>
                        <Trigger Property="IsPressed" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF272727" Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="EditeMapRadioButton" TargetType="{x:Type RadioButton}">
        <Setter Property="Background" Value="{StaticResource ButtonNormalBackgroundFill}"/>
        <Setter Property="BorderBrush" Value="{StaticResource ButtonBorder}"/>
        <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
        <Setter Property="Focusable" Value="False"></Setter>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type RadioButton}">
                    <Border x:Name="back"  CornerRadius="3"  BorderThickness ="1" Background="{StaticResource EditeMapRadioButtonBorderBackground}" BorderBrush="#80B8B8B8">
                        <ContentPresenter Margin="0" x:Name="content"  Content="{TemplateBinding  Content}">
                        </ContentPresenter>
                    </Border>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF718282" Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Background" TargetName="back" Value="{StaticResource MouseOverEditeMapRadioButtonBorderBackground}">
                            </Setter>

                        </Trigger>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF718282" Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Background" TargetName="back" Value="{StaticResource MouseOverEditeMapRadioButtonBorderBackground1}">

                            </Setter>
                        </Trigger>

                        <Trigger Property="IsChecked" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF718282" Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                            <Setter Property="Background" TargetName="back" Value="{StaticResource IsCheckedrEditeMapRadioButtonBorderBackground}">
                            </Setter>
                        </Trigger>

                        <Trigger Property="IsPressed" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF272727" Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back"  Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <Style x:Key="toolButton" TargetType="{x:Type Button}">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <Setter Property="MinHeight" Value="23"/>
        <Setter Property="MinWidth" Value="70"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="back"  CornerRadius="3"  BorderThickness ="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}"
                 Background="{StaticResource toolButtonBorderBackground}"   >

                        <Grid>
                            <Border  x:Name="BorderLeft" Width="0" HorizontalAlignment="Left" Background="Transparent">
                            </Border>
                            <Border  x:Name="BorderTop" Height="2" VerticalAlignment="Top" Background="Transparent">
                            </Border>
                            <Border  Margin="0,0,0,0" x:Name="fore" BorderThickness="0" CornerRadius="3"  BorderBrush ="{TemplateBinding BorderBrush}">
                                <ContentPresenter x:Name="content" HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding  Content}">
                                </ContentPresenter>
                            </Border>
                        </Grid>
                    </Border>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsPressed" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="0,1,0,0" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="BorderBrush" Value="{StaticResource mouseOverButtonBorder}"/>
                            <Setter TargetName="BorderLeft" Property="Background" Value="{StaticResource mouseOverBorderLeft}"/>
                            <Setter TargetName="BorderTop" Property="Background" Value="{StaticResource mouseOverBorderTop}"/>
                            <Setter TargetName="back" Property="Background" Value="{StaticResource mouseOverBorderBack}"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="0" Duration="0:0:0.1" Storyboard.TargetName="fore" Storyboard.TargetProperty="(BorderThickness)" />
                                        <ColorAnimation To="#FF718282" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Background).(LinearGradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                        <ColorAnimation To="#FF3e454a" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Background).(LinearGradientBrush.GradientStops)[1].(GradientStop.Color)" />
                                        <DoubleAnimation To="1" Duration="0:0:0.1" Storyboard.TargetName="BorderLeft" Storyboard.TargetProperty="(Border.Width)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="fore" Storyboard.TargetProperty="(BorderThickness)" />
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Background).(LinearGradientBrush.GradientStops)[0].(GradientStop.Color)" />
                                        <ColorAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Background).(LinearGradientBrush.GradientStops)[1].(GradientStop.Color)" />
                                        <DoubleAnimation Duration="0:0:0.1" Storyboard.TargetName="BorderLeft" Storyboard.TargetProperty="(Border.Width)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="#FF5F7B91"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="0,1,0,0" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <LinearGradientBrush EndPoint="0.5,1" x:Key="backBorderBackground1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
        <LinearGradientBrush.RelativeTransform>
            <TransformGroup>
                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                <RotateTransform Angle="91" CenterY="0.5" CenterX="0.5"/>
                <TranslateTransform/>
            </TransformGroup>
        </LinearGradientBrush.RelativeTransform>
        <GradientStop Color="#FFA4A4A4" Offset="1"/>
        <GradientStop Color="#FFA4A4A4"/>
        <GradientStop Color="#FFDADADA" Offset="0.05"/>
        <GradientStop Color="#FFDADADA" Offset="0.95"/>
    </LinearGradientBrush>
    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" x:Key="ButtonBackground">

        <GradientStop Color="#FF006DC5" Offset="0"/>
        <GradientStop Color="#FF006DCD" Offset="1"/>
        <GradientStop Color="#FF429AE0" Offset="0.465"/>
        <GradientStop Color="#FF036EC3" Offset="0.502"/>
        <GradientStop Color="#FF147BCD" Offset="0.305"/>

    </LinearGradientBrush>

    <Style TargetType="Button"  x:Key="CommButtonStyle">
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="FocusVisualStyle" Value="{x:Null}" />
        <Setter Property="MinHeight" Value="21"/>
        <Setter Property="MinWidth" Value="70"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Border x:Name="back" BorderThickness="1" CornerRadius="2" Background="{StaticResource backBorderBackground1}"  BorderBrush="#FFC9D7E4"  >
                        <Grid>

                            <Border   ClipToBounds="True" Background="{StaticResource ButtonBackground}" HorizontalAlignment="Stretch"   CornerRadius="2" >
                            </Border>

                            <Border  Margin="0,0,0,0" Grid.RowSpan="2" x:Name="fore" BorderThickness="0"   >
                                <ContentPresenter x:Name="content" TextElement.FontFamily="Microsoft YaHei,Microsoft JhengHei" HorizontalAlignment="Center" VerticalAlignment="Center" Content="{TemplateBinding  Content}">
                                </ContentPresenter>
                            </Border>
                            <Border CornerRadius="2">
                                <Border.Background>
                                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                        <LinearGradientBrush.RelativeTransform>
                                            <TransformGroup>
                                                <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                                <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                                <RotateTransform Angle="90" CenterY="0.5" CenterX="0.5"/>
                                                <TranslateTransform/>
                                            </TransformGroup>
                                        </LinearGradientBrush.RelativeTransform>
                                        <GradientStop Color="#4CFFFFFF" Offset="0.55"/>
                                        <GradientStop Offset="1"/>
                                        <GradientStop/>
                                        <GradientStop Color="#4CFFFFFF" Offset="0.45"/>
                                    </LinearGradientBrush>
                                </Border.Background>

                            </Border>
                        </Grid>


                    </Border>

                    <ControlTemplate.Triggers>

                        <Trigger Property="IsPressed" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="1,1,1,1" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FF29A3A7" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>
                                        <ColorAnimation To="#FF1CD9E0" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ColorAnimation To="#FFDADADA" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>
                                        <ColorAnimation To="#FFDADADA" Duration="0:0:0.1" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)" Storyboard.TargetName="back" ></ColorAnimation>
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>


                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Foreground" Value="#FF5F7B91"/>
                            <Trigger.EnterActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation To="0,1,0,0" Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.EnterActions>
                            <Trigger.ExitActions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <ThicknessAnimation Duration="0:0:0.1" Storyboard.TargetName="back" Storyboard.TargetProperty="(Border.Margin)" />
                                    </Storyboard>
                                </BeginStoryboard>
                            </Trigger.ExitActions>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#409EFF"/>
        <Setter Property="BorderBrush" Value="#DCDFE6"/>
        <Setter Property="BorderThickness" Value="0"/>
        <Setter Property="Foreground" Value="#FFFFFF"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="5,1,5,1"/>
        <Setter Property="MinWidth" Value="88"/>
        <Setter Property="MinHeight" Value="32"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" 
                                SnapsToDevicePixels="true" CornerRadius="3">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" TextElement.FontFamily="Microsoft YaHei,Microsoft JhengHei" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#409EFF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="true"/>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#55A1FD"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="true"/>
                                <Condition Property="Button.IsPressed" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#2A79DF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="true"/>
                                <Condition Property="IsEnabled" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#409EFF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                            <Setter Property="Opacity" Value="0.5" />
                        </MultiTrigger>

                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#FFFFFF"/>
                            <Setter Property="Foreground" Value="#606266"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="BorderBrush" Value="#DCDFE6"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="false"/>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#FFFFFF"/>
                            <Setter Property="Foreground" Value="#409EFF"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="BorderBrush" Value="#409EFF"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="false"/>
                                <Condition Property="Button.IsPressed" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#FFFFFF"/>
                            <Setter Property="Foreground" Value="#2E77DF"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="BorderBrush" Value="#2E77DF"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsDefault" Value="false"/>
                                <Condition Property="IsEnabled" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#FFFFFF"/>
                            <Setter Property="Foreground" Value="#606266"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="BorderBrush" Value="#DCDFE6"/>
                            <Setter Property="Opacity" Value="0.5" />
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="SpecialButtonStyle" TargetType="{x:Type Button}">
        <Setter Property="Background" Value="#ECF5FF"/>
        <Setter Property="BorderBrush" Value="#B3D8FF"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Foreground" Value="#409EFF"/>
        <Setter Property="HorizontalContentAlignment" Value="Center"/>
        <Setter Property="VerticalContentAlignment" Value="Center"/>
        <Setter Property="Padding" Value="5,1,5,1"/>
        <Setter Property="MinWidth" Value="88"/>
        <Setter Property="MinHeight" Value="32"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Border x:Name="Bd" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" 
                                SnapsToDevicePixels="true" CornerRadius="3">
                        <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                    </Border>
                    <ControlTemplate.Triggers>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsMouseOver" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#409EFF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="Button.IsPressed" Value="true"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#2A79DF"/>
                            <Setter Property="Foreground" Value="#FFFFFF"/>
                            <Setter Property="BorderThickness" Value="0"/>
                        </MultiTrigger>
                        <MultiTrigger>
                            <MultiTrigger.Conditions>
                                <Condition Property="IsEnabled" Value="false"/>
                            </MultiTrigger.Conditions>
                            <Setter Property="Background" Value="#80ECF5FF"/>
                            <Setter Property="Foreground" Value="#80409EFF"/>
                            <Setter Property="BorderThickness" Value="1"/>
                            <Setter Property="BorderBrush" Value="#B3D8FF"/>
                            <!--<Setter Property="Opacity" Value="0.5" />-->
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
